package com.youpingou.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;


@Data
@TableName(value = "tb_specification")
public class Specification {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 规格名称
     */
    @TableField(value = "spec_name")
    @JsonProperty("spec_name")
    private String specName;

    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    @JsonProperty("category_id")
    private Integer categoryId;

    @TableField(exist = false)
    private List<SpecificationOption> options;

    @TableField(exist = false)
    private String selected = "";


}